package org.example.crazy.z_strategy_model.enums;

import lombok.Getter;

/**
 * @Author yzz
 * @CreateTime 2025/04/22
 * @描述: StatusEnum
 */
@Getter
public enum StrategyEnum {
    PRICE_AUDIT(1, "priceAuditStrategy", "价格审核"),
    PRICE_REVIEW(2, "priceReviewStrategy", "价格复审");

    private final Integer status;
    private final String strategyName;
    private final String name;

    StrategyEnum(Integer status, String strategyName, String name) {
        this.status = status;
        this.strategyName = strategyName;
        this.name = name;
    }

    public static String getStrategyName(Integer status) {
        for (StrategyEnum value : StrategyEnum.values()) {
            if (value.status.equals(status)) {
                System.out.println("获取到的策略模式为：" + value.getStrategyName());
                return value.getStrategyName();
            }
        }
        return null;
    }
}
